package com.bbs.domain;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "Overtreding")
public class Overtreding {
	@Id
	private int id;
	private int bsn;
	@Temporal(TemporalType.DATE)
	private Date datum;
	@ManyToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "Boete_ID")
	private Boete boete;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getBsn() {
		return bsn;
	}
	public void setBsn(int bsn) {
		this.bsn = bsn;
	}
	public Date getDatum() {
		return datum;
	}
	public void setDatum(Date datum) {
		this.datum = datum;
	}
	public Boete getBoete() {
		return boete;
	}
	public void setBoete(Boete boete) {
		this.boete = boete;
	}
	
	
}
